/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pimp.organizermanager;

import java.util.Vector;

/**
 *
 * @author Wilku
 */
public class ToDo extends GlobalEvent{

    private int priority;
    private boolean finished;

    public ToDo(String id, Date beginDate, Date endDate, String description) {
        super(new ID(ID.PATH_SEPARATOR + "ToDo" + id), beginDate, endDate, description);
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public Node transformToNode() {

        Node ret = new Node("Todo");

        super.addGlobalEventFieldsToNode(ret);

        ret.addChild(new Node("priority", priority) );
        ret.addChild(new Node("finished", finished) );


        return ret;
    }



}
